/*
 * Copyright 2009 XueSong Guo.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cn.webwheel.di;

/**
 * 本地提供者。<br>
 * 从此提供者中获取实例对象与在容器中获取实例对象的区别在于：
 * 本地提供者不会使用用户映射的提供者获取对应类型实例，而是会使用默认的本地的方式构造对象。
 */
public interface NativeProvider<T> {

    /**
     * 获得类型实例。
     * @param key 类型标志
     * @return 实例对象
     */
    T get(Key<T> key);
}
